{% extends "_layout.html" %}
{% import "component/statistics.njk" as statistics %}

{# 样式代码 #}
{% block style %}
<title>请假记录</title>
<style type="text/css">
    .mb-post-list-3{ padding: 0;}
</style>
{% endblock %}

{# bodyd代码#}
{% block body %}
<div class="mui-content">
    {%for item in data.list%}
    <div class="bbs-user-top xw-border-bottom">
        <a class="bbs-user-info mui-clearfix" href="javascript:window.location.replace('leavedetail?id={{item.id}}');">
            {%if item.headImgUrl%}
            <img class="bbs-user-photo mui-pull-left" src="{{ctx.app.config.api.image}}/{{item.headImgUrl}}"/>
            {%else%}
            <img class="bbs-user-photo mui-pull-left" src="images/user2.png"/>
            {%endif%}
            <div class="mb-nick-name mui-pull-left">
                <b class="mb-nickname mui-ellipsis">{{item.teacherName}}的请假</b>
                {%if item.validateStatus == 1%}
                <p class="mb-arr-time"><span class="leave-ing">待审批</span></p>
                {%elif item.validateStatus == 2%}
                <p class="mb-arr-time"><span class="leave-ed">审批通过</span></p>
                {%else%}
                <p class="mb-arr-time"><span class="leave-cancel">已撤销</span></p>
                {%endif%}
                <p class="leave-li">请假类型:
                    {%if item.type == 1%}
                    年假
                    {%elif item.type == 2%}
                    事假
                    {%elif item.type == 3%}
                    病假
                    {%elif item.type == 4%}
                    调休
                    {%elif item.type == 5%}
                    陪产假
                    {%elif item.type == 6%}
                    婚假
                    {%elif item.type == 7%}
                    例假
                    {%elif item.type == 8%}
                    丧假
                    {%else%}
                    其他
                    {%endif%}
                </p>
                <p class="leave-li">开始时间:{{item.startDate}}</p>
                <p class="leave-li">结束时间:{{item.endDate}}</p>
            </div>
            <span class="bbs-interaction-btn mui-pull-right">{{item.createDate}}</span>
        </a>
    </div>
    {%endfor%}
</div>
{% endblock %}

{#js代码#}
{% block js %}

<!--flotdemo-->
{% endblock %}
